﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.io.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/css" />
<link rel="stylesheet" href="../src/jsp/css/base.css" type="text/css" media="all" />
<link rel="stylesheet" href="../src/jsp/css/tip.css" type="text/css" media="all" />

<title>商品詳細      スタイルシートをチェック</title>
<script type="text/javascript">
<!--
function hyouzi() {
document.form1.number2.value = Number(document.form1.number2.value) + Number(document.form1.number.value);
			document.form1.number.value = "";
}
-->
</script>
</head>

<body>
<form name="form1">
<div id="wrapper">

<div id="header">
	<h1><a href="../top"><img src="../src/img/kyoutu/head4.jpg" width="765px" height="110" alt="うるまかりゆし商店"/></a></h1>

	<ul>
		<li id="top"><a href="../top">トップページ</a></li>


		<li id="foods"><a href="./CateSQL?cateText=1">食品</a></li>
		<li id="craft"><a href="./CateSQL?cateText=2">民芸品</a></li>
		<li id="book_cd"><span>本・CD</span></li>


		<li id="info"><a href="http://localhost:8080/tsuhan/src/jsp/shouhin/cart07.jsp">カートを見る</a></li>
		<li id="faq"><a href="#">お問い合わせ</a></li>
	</ul>
</div><!-- header_END -->

<div id="pagebody">

<div id="sidebar">

	<h2>ログイン</h2>
<div id="login">
	<label class="sidelabel" for="identify"">お客様番号</label>
	<input type="text" id="identify"></input>
	<label class="sidelabel" for="pass">パスワード</label>
	<input type="text" id="pass"></input>
	<input type="submit" id="loginsub" value="送信" />

	<a href="registration.html">新規登録</a>
</div><!-- login_END -->

</div><!-- sidebar_END -->
<div id="content">
	<h2><%=request.getAttribute("bNAME") %></h2>
	<h3><img src= <%= request.getAttribute("bIMG") %> width="360" height="360"></img></h3>
	<dl>
		<dt>商品詳細</dt>
		<dd><%=request.getAttribute("bSETUMEI") %></dd>
		<dt>販売価格
		¥<%=request.getAttribute("bNEDAN") %>
		</dt>
	</dl>
	<label for="number">購入個数</label>
	<input type="text" size="1" id="number"></input>

<%
		String temp = "0";
   		if( !temp.equals(request.getAttribute("bZAIKO"))){
%>
			<p><a href="./CateSQL?cateText=3" ><img src="../src/img/kyoutu/cart.gif" alt="商品をカートに入れる" onclick="hyouzi()"></img></a></p>
<%
		}else {
%>
			<p><a ><img src="../src/img/kyoutu/soldout.gif" alt="売り切れ表示" onclick="hyouzi()"></img></a></p>
<%
		}
%>


		<p><a href="./CateSQL?cateText=3" ><img src="../src/img/kyoutu/modoru.gif" alt="戻る" onclick="hyouzi()"></img></a></p>

</div><!-- content_END -->
</div><!-- pagebody_END -->

<div id="footer">
	<ul>
		<li id="privacy"><a href="#" title="プライバシーポリシー">privacy</a></li>
		<li id="sitemap"><a href="#" title="サイトマップ">sitemap</a></li>
		<li id="info"><a href="#" title="お問い合わせ">info</a></li>
	</ul>

	<p>All rights reserved Nak Corporation &amp; Co.2010-2011</p>

</div><!-- footer_END -->

</div><!-- wrapper_END -->

</form>
</body>
</html>
